// 19:00:00-20:00:00转为19:00-20:00
export const getSpliceTimeText = (timeSlot) => {
  if (timeSlot) {
    const times = timeSlot.split("-")
    if (times.length === 2) {
      const newTimeSlot = times.map(item => {
        const strs = item.split(':')
        return `${strs[0]}:${strs[1]}`
      }).join("-")
      return newTimeSlot
    }
  }
  return ''
};